package com._520it.crm.mapper;

import com._520it.crm.domain.ClientEle;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ClientEleMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ClientEle record);

    ClientEle selectByPrimaryKey(Long id);

    List<ClientEle> selectAll();

    int updateByPrimaryKey(ClientEle record);

    List<ClientEle> selectPage(@Param("current") int current,
                               @Param("size") int size,
                               @Param("name") String name,
                               @Param("nature") String nature,
                               @Param("antiLaunGrade") String antiLaunGrade,
                               @Param("papersType") String papersType,
                               @Param("papersNum") String papersNum,
                               @Param("address") String address,
                               @Param("aReplenish") String aReplenish,
                               @Param("tel") String tel);

    int selectPageCount(@Param("current") int current,
                        @Param("size") int size,
                        @Param("name") String name,
                        @Param("nature") String nature,
                        @Param("antiLaunGrade") String antiLaunGrade,
                        @Param("papersType") String papersType,
                        @Param("papersNum") String papersNum,
                        @Param("address") String address,
                        @Param("aReplenish") String aReplenish,
                        @Param("tel") String tel);
}